﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace extension_tests
{
  [TestClass]
  public class UnitTest1
  {
    [TestMethod]
    public void test_methods()
    {
      var str = "1";
      var x = str.ToInt32();//x = 1

      var str1 = "1mmm";
      var x2 = str1.ToInt32(1);// x2 =  1


      var dt = 1.January(1900);//01/01/1900

      var success = this.Try(() =>
                 {
                   //some exction could be here

                 });

      if (success)
        ;//then do something


      var tabPage = new TabPage();
      tabPage.HideTabPage();
      tabPage.ShowTabPage();


      try
      {

      }
      catch (Exception ex)
      {
        ex.Log();
      }

      object obj = null;

      if (obj.IsNull(() =>
                       {
                         //do something
                       })) ;

    }
  }
}
